package cn.edu.zafu.bigdata.yuyini;

public class course {
    private final String courseID;
    private final String courseName;
    private final String teacherName;
    private final double coursecredits;

    public course(String cID,String cName,String tName,double credits) {
        this.courseID = cID;
        this.courseName = cName;
        this.teacherName = tName;
        this.coursecredits = credits;
    }

    public void cprint(){
        System.out.println("课程编号："+this.courseID);
        System.out.println("课程名称："+this.courseName);
        System.out.println("授课老师名字："+this.teacherName);
        System.out.println("课程学分："+this.coursecredits);
    }

    public static void main (String[] args){
        course course=new course("2022","JAVA","WuPeng",4.0);
        course.cprint();
    }
}
